﻿module RPG {
    export class Creater extends Phaser.State {
        preload() {
        }

        create() {
            this.input.maxPointers = 1;

            this.stage.disableVisibilityChange = true;
            this.physics.startSystem(Phaser.Physics.ARCADE);
            this.physics.arcade.gravity = new Phaser.Point(0, 0);

            this.game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;

            this.game.scale.pageAlignHorizontally = true;
            this.game.scale.pageAlignVertically = true;

            this.game.scale.windowConstraints.bottom = true;

                        
            this.game.state.start('Preloader', true, false);
        }
    }
}